﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SF.WebClient.Controllers
{
    public class LayoutController : BasicController
    {

        #region panels 获取所有panel面板

        public ViewResult PanelsDemo()
        {
            return View();
        }

        public PartialViewResult PanelsSource()
        {
            return PartialView();
        }

        public void ViewPanelsSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/layout/jeasyui.extensions.layout.panels.js");
        }

        public PartialViewResult PanelsExplain()
        {
            return PartialView();
        }

        #endregion

        #region collapseAndExpand 折叠展开切换

        public ViewResult CollapseAndExpandDemo()
        {
            return View();
        }

        public PartialViewResult CollapseAndExpandSource()
        {
            return PartialView();
        }

        public void ViewCollapseAndExpandSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/layout/jeasyui.extensions.layout.collapseAndExpand.js");
        }

        public PartialViewResult CollapseAndExpandExplain()
        {
            return PartialView();
        }

        #endregion

        #region showTitleOnCollapse 折叠时显示标题

        public ViewResult ShowTitleOnCollapseDemo()
        {
            return View();
        }

        public PartialViewResult ShowTitleOnCollapseSource()
        {
            return PartialView();
        }

        public void ViewShowTitleOnCollapseSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/layout/jeasyui.extensions.layout.showTitleOnCollapse.js");
        }

        public PartialViewResult ShowTitleOnCollapseExplain()
        {
            return PartialView();
        }

        #endregion
	}
}